package com.zhixiang.wbl.visitor.model.home;

import com.zhixiang.wbl.visitor.Constant.Constant;
import com.zhixiang.wbl.visitor.bean.BaseBean;

/**
 * Created by dongzhixiang on 16/5/18.
 */
public class Travelaround extends BaseBean
{
    private String createAt;
    private String description;
    private String extra;
    private int id;
    private String imageUrl;
    private double latitude;
    private double longtitude;
    private String price;
    private String type;
    private String updateAt;

    public void setCreateAt(String createAt){
        this.createAt = createAt;
    }
    public String getCreateAt(){
        return this.createAt;
    }
    public void setDescription(String description){
        this.description = description;
    }
    public String getDescription(){
        return this.description;
    }
    public void setExtra(String extra){
        this.extra = extra;
    }
    public String getExtra(){
        return this.extra;
    }
    public void setId(String id){
        this.id = Integer.parseInt(id);
    }
    public int getId(){
        return this.id;
    }
    public void setImageUrl(String imageUrl){
        this.imageUrl = imageUrl;
    }
    public String getImageUrl(){
        return Constant.BANNER_URL_PRE+this.imageUrl;
    }
    public void setLatitude(String latitude){
        this.latitude = Double.parseDouble(latitude);
    }
    public double getLatitude(){
        return this.latitude;
    }
    public void setLongtitude(String longtitude){
        this.longtitude = Double.parseDouble(longtitude);
    }
    public double getLongtitude(){
        return this.longtitude;
    }
    public void setPrice(String price){
        this.price = price;
    }
    public String getPrice(){
        return this.price;
    }
    public void setType(String type){
        this.type = type;
    }
    public String getType(){
        return this.type;
    }
    public void setUpdateAt(String updateAt){
        this.updateAt = updateAt;
    }
    public String getUpdateAt(){
        return this.updateAt;
    }

    @Override
    public String toString() {
        return "Travelaround{" +
                "createAt='" + createAt + '\'' +
                ", description='" + description + '\'' +
                ", extra='" + extra + '\'' +
                ", id=" + id +
                ", imageUrl='" + imageUrl + '\'' +
                ", latitude=" + latitude +
                ", longtitude=" + longtitude +
                ", price='" + price + '\'' +
                ", type='" + type + '\'' +
                ", updateAt='" + updateAt + '\'' +
                '}';
    }
}
